package com.ken.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class paper {
    //试卷的主键（不需要提交）
    private String paper_id;
    //试卷的名称
    private String paper_name;
    //试卷的描述
    private String description;
    //试卷的题目数
    private int Q_num;
    //试卷的创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime create_time;

    public paper() {
    }

    public paper(String paper_id, String paper_name, String description, int Q_num, LocalDateTime create_time) {
        this.paper_id = paper_id;
        this.paper_name = paper_name;
        this.description = description;
        this.Q_num = Q_num;
        this.create_time = create_time;
    }

    /**
     * 获取
     * @return paper_id
     */
    public String getPaper_id() {
        return paper_id;
    }

    /**
     * 设置
     * @param paper_id
     */
    public void setPaper_id(String paper_id) {
        this.paper_id = paper_id;
    }

    /**
     * 获取
     * @return paper_name
     */
    public String getPaper_name() {
        return paper_name;
    }

    /**
     * 设置
     * @param paper_name
     */
    public void setPaper_name(String paper_name) {
        this.paper_name = paper_name;
    }

    /**
     * 获取
     * @return description
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置
     * @param description
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 获取
     * @return Q_num
     */
    public int getQ_num() {
        return Q_num;
    }

    /**
     * 设置
     * @param Q_num
     */
    public void setQ_num(int Q_num) {
        this.Q_num = Q_num;
    }

    /**
     * 获取
     * @return create_time
     */
    public LocalDateTime getCreate_time() {
        return create_time;
    }

    /**
     * 设置
     * @param create_time
     */
    public void setCreate_time(LocalDateTime create_time) {
        this.create_time = create_time;
    }

    public String toString() {
        return "paper{paper_id = " + paper_id + ", paper_name = " + paper_name + ", description = " + description + ", Q_num = " + Q_num + ", create_time = " + create_time + "}";
    }
}
